package cn.tedu;

import sun.font.FontRunIterator;

import java.util.Arrays;

public class Test3 {
    public static void main(String[] args) {
       /* String[] s={"杨幂","迪丽热巴","古力娜扎","Anglelababa","刘"};
       print(s);

       Integer[] i={1,2,3,4,5};//自动装箱
        print(i);

        Double[] d={1.1,2.1,3.3,4.4,5.5};
        print(d);*/

        Double[] d={1.1,2.1,3.3,4.4,5.5};
        print(d);
    }
    /*public static void print(String[] s){
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);
        }
    }*/
   /* public static void print(Integer[] i){
        //for (int j = 0; j <i.length ; j++) {
         //   System.out.println(i[j]);
       // }

       // System.out.println(Arrays.toString(i));

       for(Integer x:i){
            System.out.println(x);
        }

    }*/
  /*  public static void print(Double[] d){
        System.out.println(Arrays.toString(d));
    }*/
    public static <E> void print(E[] a){//尖括号里写 E T K N V ?都可以 效果一样
        for(E s:a){
            System.out.println(s);
        }
    }
}
